package com.jmlee.pojo;

/**
 * @author： 郑锦涛
 * @data： 2021/3/10 10:53
 * @version：1.0
 * @描述： 订单商品具体信息表 对应order_items表
 */
public class OrderItems {

    /**
     * id   ID
     * orderId  归属订单id
     * itemId   商品id
     * itemImg  商品图片
     * itemName 商品名
     * prePrice 预计价格
     * price    成交价格
     * buyCounts    购买数量
     */
    private Long id;
    private Long orderId;
    private Integer itemId;
    private String itemImg;
    private String itemName;
    private Integer prePrice;
    private Integer price;
    private Integer buyCounts;

    public OrderItems() {
    }

    public OrderItems(Long id, Long orderId, Integer itemId, String itemImg, String itemName, Integer prePrice, Integer price, Integer buyCounts) {
        this.id = id;
        this.orderId = orderId;
        this.itemId = itemId;
        this.itemImg = itemImg;
        this.itemName = itemName;
        this.prePrice = prePrice;
        this.price = price;
        this.buyCounts = buyCounts;
    }

    @Override
    public String toString() {
        return "OrderItems{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", itemId=" + itemId +
                ", itemImg='" + itemImg + '\'' +
                ", itemName='" + itemName + '\'' +
                ", prePrice=" + prePrice +
                ", price=" + price +
                ", buyCounts=" + buyCounts +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public String getItemImg() {
        return itemImg;
    }

    public void setItemImg(String itemImg) {
        this.itemImg = itemImg;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Integer getPrePrice() {
        return prePrice;
    }

    public void setPrePrice(Integer prePrice) {
        this.prePrice = prePrice;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getBuyCounts() {
        return buyCounts;
    }

    public void setBuyCounts(Integer buyCounts) {
        this.buyCounts = buyCounts;
    }
}
